/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PnlListMantenance.java
 *
 * Created on 22 ม.ค. 2553, 13:55:03
 */

package Inventory;

/**
 *
 * @author Administrator
 */
public class PnlListMantenance extends javax.swing.JPanel {

    /** Creates new form PnlListMantenance */
    public PnlListMantenance() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlHeadListMan = new javax.swing.JPanel();
        lblHeadListMan = new javax.swing.JLabel();
        btnManListEdit = new javax.swing.JButton();
        btnManListDel = new javax.swing.JButton();
        btnManListAdd = new javax.swing.JButton();
        btnManListSearch = new javax.swing.JButton();
        btnManPrint = new javax.swing.JButton();
        pnlListMan = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        lblMBCode = new javax.swing.JLabel();
        txtMBCode = new javax.swing.JTextField();
        lblDMCode = new javax.swing.JLabel();
        lblSuCode = new javax.swing.JLabel();
        txtSuCode = new javax.swing.JTextField();
        lblManDateSent = new javax.swing.JLabel();
        txtManDateSent = new javax.swing.JTextField();
        lblManDateRe = new javax.swing.JLabel();
        txtManDateRe = new javax.swing.JTextField();
        txtDMCode = new javax.swing.JTextField();

        setMaximumSize(new java.awt.Dimension(700, 500));
        setMinimumSize(new java.awt.Dimension(700, 500));
        setPreferredSize(new java.awt.Dimension(700, 500));
        setLayout(new java.awt.BorderLayout());

        pnlHeadListMan.setBackground(new java.awt.Color(204, 255, 204));
        pnlHeadListMan.setMaximumSize(new java.awt.Dimension(700, 80));
        pnlHeadListMan.setMinimumSize(new java.awt.Dimension(700, 80));
        pnlHeadListMan.setPreferredSize(new java.awt.Dimension(700, 80));

        lblHeadListMan.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N
        lblHeadListMan.setText("จัดการข้อมูลการซ่อม/เครม");

        btnManListEdit.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnManListEdit.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/edit1_30x30.gif"))); // NOI18N
        btnManListEdit.setMaximumSize(new java.awt.Dimension(75, 30));
        btnManListEdit.setMinimumSize(new java.awt.Dimension(75, 30));
        btnManListEdit.setPreferredSize(new java.awt.Dimension(75, 30));

        btnManListDel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/del_30x30.gif"))); // NOI18N

        btnManListAdd.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/add_30x30.gif"))); // NOI18N

        btnManListSearch.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/search_30x30.gif"))); // NOI18N

        btnManPrint.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/print_30x30.gif"))); // NOI18N
        btnManPrint.setMaximumSize(new java.awt.Dimension(40, 40));
        btnManPrint.setMinimumSize(new java.awt.Dimension(40, 40));
        btnManPrint.setPreferredSize(new java.awt.Dimension(40, 40));

        javax.swing.GroupLayout pnlHeadListManLayout = new javax.swing.GroupLayout(pnlHeadListMan);
        pnlHeadListMan.setLayout(pnlHeadListManLayout);
        pnlHeadListManLayout.setHorizontalGroup(
            pnlHeadListManLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlHeadListManLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlHeadListManLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlHeadListManLayout.createSequentialGroup()
                        .addComponent(btnManListSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnManListAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnManListDel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnManListEdit, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(10, 10, 10)
                        .addComponent(btnManPrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(lblHeadListMan))
                .addGap(440, 440, 440))
        );
        pnlHeadListManLayout.setVerticalGroup(
            pnlHeadListManLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlHeadListManLayout.createSequentialGroup()
                .addGap(11, 11, 11)
                .addGroup(pnlHeadListManLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(btnManPrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(pnlHeadListManLayout.createSequentialGroup()
                        .addComponent(lblHeadListMan)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pnlHeadListManLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(btnManListEdit, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnManListSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnManListAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnManListDel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap())
        );

        add(pnlHeadListMan, java.awt.BorderLayout.PAGE_START);

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "รหัสรายละเอียดส่งซ่อม", "วันที่ส่งสินค้า", "วันที่รับสินค้า", "รหัสผู้จำหน่าย"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane1.setViewportView(jTable1);

        lblMBCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblMBCode.setText("รหัสรายการซ่อมบำรุง :");

        txtMBCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        lblDMCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblDMCode.setText("รหัสรายละเอียดส่งซ่อม :");

        lblSuCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblSuCode.setText("รหัสผู้จำหน่าย :");

        txtSuCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        txtSuCode.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtSuCodeActionPerformed(evt);
            }
        });

        lblManDateSent.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblManDateSent.setText("วันที่ส่งสินค้า :");

        txtManDateSent.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        txtManDateSent.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtManDateSentActionPerformed(evt);
            }
        });

        lblManDateRe.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblManDateRe.setText("วันที่รับสินค้า :");

        txtManDateRe.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        txtManDateRe.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtManDateReActionPerformed(evt);
            }
        });

        txtDMCode.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        txtDMCode.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtDMCodeActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout pnlListManLayout = new javax.swing.GroupLayout(pnlListMan);
        pnlListMan.setLayout(pnlListManLayout);
        pnlListManLayout.setHorizontalGroup(
            pnlListManLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlListManLayout.createSequentialGroup()
                .addGroup(pnlListManLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlListManLayout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addGroup(pnlListManLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblManDateRe, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(lblSuCode, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(lblMBCode, javax.swing.GroupLayout.Alignment.TRAILING))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(pnlListManLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txtMBCode, javax.swing.GroupLayout.DEFAULT_SIZE, 144, Short.MAX_VALUE)
                            .addComponent(txtSuCode, javax.swing.GroupLayout.DEFAULT_SIZE, 144, Short.MAX_VALUE)
                            .addComponent(txtManDateRe))
                        .addGap(20, 20, 20)
                        .addGroup(pnlListManLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblManDateSent, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(lblDMCode, javax.swing.GroupLayout.Alignment.TRAILING))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(pnlListManLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txtDMCode)
                            .addComponent(txtManDateSent, javax.swing.GroupLayout.DEFAULT_SIZE, 144, Short.MAX_VALUE)))
                    .addGroup(pnlListManLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 680, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        pnlListManLayout.setVerticalGroup(
            pnlListManLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlListManLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlListManLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblMBCode)
                    .addComponent(txtMBCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblDMCode)
                    .addComponent(txtDMCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlListManLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtSuCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblSuCode)
                    .addComponent(txtManDateSent, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblManDateSent))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlListManLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblManDateRe)
                    .addComponent(txtManDateRe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(153, Short.MAX_VALUE))
        );

        add(pnlListMan, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents

    private void txtSuCodeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtSuCodeActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtSuCodeActionPerformed

    private void txtManDateSentActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtManDateSentActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtManDateSentActionPerformed

    private void txtManDateReActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtManDateReActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtManDateReActionPerformed

    private void txtDMCodeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtDMCodeActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtDMCodeActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnManListAdd;
    private javax.swing.JButton btnManListDel;
    private javax.swing.JButton btnManListEdit;
    private javax.swing.JButton btnManListSearch;
    private javax.swing.JButton btnManPrint;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTable jTable1;
    private javax.swing.JLabel lblDMCode;
    private javax.swing.JLabel lblHeadListMan;
    private javax.swing.JLabel lblMBCode;
    private javax.swing.JLabel lblManDateRe;
    private javax.swing.JLabel lblManDateSent;
    private javax.swing.JLabel lblSuCode;
    private javax.swing.JPanel pnlHeadListMan;
    private javax.swing.JPanel pnlListMan;
    private javax.swing.JTextField txtDMCode;
    private javax.swing.JTextField txtMBCode;
    private javax.swing.JTextField txtManDateRe;
    private javax.swing.JTextField txtManDateSent;
    private javax.swing.JTextField txtSuCode;
    // End of variables declaration//GEN-END:variables

}
